/**
 * TrackRecordTrackRecord.java
 * 
 * Created Date: 2014骞�1鏈�4鏃� *
 * Copyright (c) Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 * Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */
package com.centling.bluecollar.customer.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @author hellsing
 *
 */
@Entity
@Table(name = "t_enterpriseTrackRecor")
public class EnterpriseTrackRecord {
	
	private int id;
	private String name;
	private String status;
	private String date;
	private EnterpriseCustomer enterpriseCustomer;

	/**
	 * @return the enterpriseCustomer
	 */
	@ManyToOne(fetch=FetchType.EAGER,cascade=CascadeType.ALL)
	@JoinColumn(name="enterpriseCustomerId")
	public EnterpriseCustomer getEnterpriseCustomer() {
	
		return enterpriseCustomer;
	}

	
	/**
	 * @param enterpriseCustomer the enterpriseCustomer to set
	 */
	public void setEnterpriseCustomer(EnterpriseCustomer enterpriseCustomer) {
	
		this.enterpriseCustomer = enterpriseCustomer;
	}

	
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue
	public int getId() {
	
		return id;
	}
	
	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
	
		this.id = id;
	}
	
	/**
	 * @return the name
	 */
	@Column(length = 40)
	public String getName() {
	
		return name;
	}
	
	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
	
		this.name = name;
	}
	
	/**
	 * @return the detail
	 */
	@Column(length = 400)
	public String getStatus() {
	
		return status;
	}
	
	/**
	 * @param detail
	 *            the detail to set
	 */
	public void setStatus(String status) {
	
		this.status = status;
	}
	
	/**
	 * @return the date
	 */
	public String getDate() {
	
		return date;
	}
	
	/**
	 * @param date
	 *            the date to set
	 */
	public void setDate(String date) {
	
		this.date = date;
	}
}
